package com.project.servic.impl;

import com.project.bean.UserBean;
import com.project.dao.IUserDao;
import com.project.servic.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements IUserService {
    @Autowired
    private IUserDao dao;
    @Override
    public UserBean land(String name, String password) {
        return dao.land(name,password) ;
    }

    @Override
    public void add(UserBean user) {
      dao.add(user);
    }
}
